
$(document).ready(function () {
    //Web/Booking/SelectFlights.aspx: radio btn mutual exclusion   
    var rdos = $('#lvFlightsToDestTmpl input[type="radio"]');
    $('#lvFlightsToDestTmpl input[type="radio"]:first').prop("checked", true);
    bindEventForMutualExclusion(rdos);

    var rdos = $('#lvReturnFlightsTmpl input[type="radio"]');
    $('#lvReturnFlightsTmpl input[type="radio"]:first').prop("checked", true);
    bindEventForMutualExclusion(rdos);
})

function bindEventForMutualExclusion(rdos) {
    rdos.click(function () {
        var chk = $(this);
        var wasChecked = chk.prop("checked") === true;
        rdos.prop("checked", false);
        if (wasChecked)
            chk.prop("checked", true);
    });
}